#include <iostream>
#include <sstream>
#include <cstdio>
#include <stack>
#include <algorithm>
#include <vector>
#include <string>

using namespace std;

vector<int> vs1,vs2;


int solve(vector<int> &v1,vector<int> &v2){
    int len1=v2.size(),len2=v2.size();
    vector<int> c1(len1,0),c2(len2,0);
    for(int i=1;i<len1;i++){
        c1[i]=v1[i]-v1[i-1];
    }
    for(int i=1;i<len2;i++){
        c2[i]=v2[i]-v2[i-1];
    }
    





    return 0;
}


int main(){
    freopen("2.in","r",stdin);
    string s1,s2;
    getline(cin,s1);
    getline(cin,s2);
    istringstream s1in(s1),s2in(s2);
    int t;
    vector<int> v1,v2;
    while(s1in>>t){
        v1.push_back(t);
    }
    while(s2in>>t){
        v2.push_back(t);
    }
    auto ans=solve(v1,v2);
    cout << ans <<endl;


    return 0;
}